package Demo1;

public class Test {
    public static void main(String[] args) {
        RedFujiApple apple = new RedFujiApple();
        apple.bloom();
        apple.bearFruit();
        apple.bePicked();

        double total1 = FruitUtil.calculateApplePrice(3.5, apple);
        double total2 = FruitUtil.calculateFruitPrice(2.0, apple);
        System.out.println("红富士苹果总价1为：" + total1);
        System.out.println("红富士苹果总价2为：" + total2);
    }
}
